//
//  CardsView.m
//  QoilPublic
//
//  Created by SunChao on 17/8/29.
//  Copyright © 2017年 杨凯. All rights reserved.
//


#define RGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
#define Edge 15
#define Spacing 10
#import "CardsView.h"

@implementation CardsView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
        CGPoint center = self.center;
        center.x = self.frame.size.width / 2-25;
        center.y = self.frame.size.height / 2-10;
        _cLabel = [[UILabel alloc]init];
        _cLabel.center = center;
        CGRect frame = _cLabel.frame;
        frame.size = CGSizeMake(50, 20);
        _cLabel.frame = frame;
        _cLabel.font = [UIFont systemFontOfSize:13];
        _cLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_cLabel];
        _cImgView = [[UIImageView alloc] initWithFrame:CGRectMake(center.x-25, center.y, 20, 20)];
        [self addSubview:_cImgView];
       
        _cButton = [[UIButton alloc] initWithFrame:CGRectMake(center.x+50, center.y, 20, 20)];
        _cButton.backgroundColor = [UIColor clearColor];
        [self addSubview:_cButton];
            }
    return self;
}

@end
